/*
** main.c for my_select in /home/nadali_t//local/svn/tek2ed/my_select
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Mon Nov 19 15:57:27 2012 thomas nadalie
** Last update Sun Nov 25 17:50:30 2012 thomas nadalie
*/

#include	"my.h"
#include        <unistd.h>

#include        <term.h>

int		my_select(int ac, char **av)
{
  int		i;
  t_list	*list;

  i = 1;
  list = create_list();
  clear_s();
  while (i != ac)
    {
      my_put_in_list(&list, av[i]);
      i++;
    }
  tputs(tgoto(tgetstr("cm", NULL), 0, 0), 1, my_putchar);
  catch_key(list);
  return (0);
}

int		main(int ac, char **av)
{
  if (ac > 1)
    my_select(ac, av);
  return (0);
}
